package spider.zookeeper;

import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.Watcher;

/**
 * 节点操作接口
 *
 * @author Archx[archx@foxmail.com]
 * @date 2017/4/7
 */
public interface NodeAction {

    /**
     * 执行操作
     *
     * @param watcher 观察者
     * @throws InterruptedException
     * @throws KeeperException
     */
    void doAction(final Watcher watcher) throws InterruptedException, KeeperException;

}
